﻿using System;
using System.ComponentModel.DataAnnotations;
using Lbb.DataAnnotations;
using Lbb.URating.Localization;

namespace Lbb.URating.DL
{
    [MetadataType(typeof(_U_Rating))]
    public partial class U_Rating
    {
    }
    internal class _U_Rating
    {
        [Display(ResourceType = typeof(U_RatingRes), Name = "RatingID")]
        public Guid RatingID { get; set; }

        [Display(ResourceType = typeof(U_RatingRes), Name = "UserID")]
        public Guid UserID { get; set; }

        [Display(ResourceType = typeof(U_RatingRes), Name = "Rating")]
        public decimal Rating { get; set; }

        [Display(ResourceType = typeof(U_RatingRes), Name = "Username")]
        [NStringLength(256)]
        public string Username { get; set; }

        [Display(ResourceType = typeof(U_RatingRes), Name = "Created")]
        public DateTime Created { get; set; }

        [Display(ResourceType = typeof(U_RatingRes), Name = "LastUpdated")]
        public DateTime LastUpdated { get; set; }
    }
}